#include <iostream>
using namespace std;
class cude
{
    //属性--长方体的长宽高
    double m_l,m_v,m_h;
public:
    void get_l_v_m(double l,double v,double h){
        m_l=l;
        m_v=v;
        m_h=h;
    }
    double get_l(){
        return m_l;
    }
    double get_v(){
        return m_v;
    }
    double det_h(){
        return m_h;
    }
    double push_area(){
        return ((m_l*m_v)+(m_v*m_h)+(m_l*m_h))*2;
    }
    double push_volume(){
        return m_l*m_v*m_h;
    }
};
bool isSamw(cude &c1,cude &c2)
{
    if((c1.det_h()==c2.det_h())&&(c1.get_l()==c2.get_l())&&(c1.get_v()==c2.get_v())){
        return true;
    }
    else{
        return false;
    }
}
int main()
{
    cude s1,s2;
    s1.get_l_v_m(10,10,10);
    s2.get_l_v_m(20,20,20);
    cout<<s1.push_area()<<endl;
    cout<<s1.push_volume()<<endl;
    cout<<isSamw(s1,s2)<<endl;
    return 0;
}